export default `
<input type="button" value="获取值" data-feidao-actions="click:eu-011" style="margin:10px;">
<a href="https://feidao-factory.gitee.io/feidao-widgets/fd-w000001.html" target="_blank" style="color:red;margin-right:10px;">api地址</a>

<div>
<fd-w000001 id="fd-w000001-001" checkbox dots icon="./images/45_70x70.jpg" id-field="no" text-field="name" pid-field="parent" title-field="alias" icon-field="img" data='[{"no":1,"parent":"root","name":"1", "alias":"ffffffffffffffffffffffff"},{"no":2,"parent":"0","name":"2"},{"no":"11","parent":"1","name":"11"},{"no":"12","parent":"1","name":"12", "img":"https://avatars1.githubusercontent.com/u/15901911?s=40&v=4"},{"no":"111","parent":"11","name":"111"},{"no":"112","parent":"11","name":"112"},{"no":"211","parent":"2","name":"211"}]'></fd-w000001>
<span>控件初始化</span>
<textarea cols=80 rows=5>import { IFeidaoAiBrowserComponent } from "@feidao/web/interfaces";
import render from "@feidao/web/atom/browser/render/render";
import p01 from "./p01";
import tree from '@feidao/widgets/fd-w000001';
export default async function a000(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	// 折叠树渲染
	render(fd, [], p01, 'p01', 'inner');
	await tree();
}</textarea>
<span>调用控件方法</span>
<textarea cols=80 rows=5>import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';

export default async function a011(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	const tree = (fd.data.node.querySelector('#fd-w000001-001') as any).widget;
	const res = tree.get_checked();
	alert(JSON.stringify(res));
}
</textarea>
</div>
`;